package com.xiaolin.springbootdemo.utils;

/**
 * @ClassName ResponseResult
 * @Description 响应状态码
 * @Detail detail
 * @Author MyPC
 * @Date 2021/1/10
 * @Version 1.0
 */
public enum ResultCode implements ICommonCode {
    SUCCESS(200,"操作成功"),
    FAILED(500, "操作失败"),
    NUMBER_HANDLE_ERROR(11001,"数字处理异常");
    private long code;
    private String msg;

    ResultCode(long code,String msg){
        this.code=code;
        this.msg=msg;
    }
    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
